feat: add Codex support for extension command registration#1767
feat: add Codex support for extension command registration#1767mnriem merged 3 commits intogithub:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds Codex CLI to the CommandRegistrar.AGENT_CONFIGS map in extensions.py, enabling specify extension add to register extension commands into Codex projects (targeting .codex/prompts/ with Markdown format and $ARGUMENTS placeholder). The codex key was already present in AGENT_CONFIG in __init__.py and in the release packaging scripts, but was missing from the extension command registrar.
Changes:
- Adds a
"codex"entry toCommandRegistrar.AGENT_CONFIGSwithdir: .codex/prompts,format: markdown,args: $ARGUMENTS, andextension: .md.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
mnriem
left a comment
There was a problem hiding this comment.
Can you address the feedback by Copilot where applicable. If not applicable please describe why. Thanks!
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The Copilot feedback has been addressed:
All 120 tests pass. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Add Codex support to extension command registration by adding a
codexentry toCommandRegistrar.AGENT_CONFIGSinsrc/specify_cli/extensions.py.Description
specify init --ai codexcreates projects using.codex/prompts/, butspecify extension adddid not include Codex in the registrar agent map.This change makes extension command installation target Codex projects as expected:
.codex/promptsmarkdown$ARGUMENTS.mdTesting
uv run specify --helpuv run pytestuv run pytestresult:AI Disclosure
Used Codex to help prepare and validate this contribution. All final changes were reviewed by a human.